cxgb4: avoid enabling napi twice to the same queue
authorGanesh Goudar <ganeshgr@chelsio.com>
Wed, 31 May 2017 12:56:28 +0000 (18:26 +0530)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:54:09 +0000 (02:54 +0000)
commitcab6827167392fe1820ea901316a5d514b42142d
treea786e34542b18c3669080841f9b7e13826f54df1
parentee04e7503c45f1de0b62e48c8f9f5a19efd91c88
cxgb4: avoid enabling napi twice to the same queue

[ Upstream commit e7519f9926f1d0d11c776eb0475eb098c7760f68 ]

Take uld mutex to avoid race between cxgb_up() and
cxgb4_register_uld() to enable napi for the same uld
queue.

Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c